package com.dylan.channel.v9;


import com.dylan.channel.v9.channel.NioServerSocketChannel;
import com.dylan.channel.v9.option.ChannelOption;

import java.io.IOException;

public class NettyServerV9 {

    public static void main(String[] args) throws IOException, InterruptedException {
        NioEventLoopGroup bossGroup = new NioEventLoopGroup(2);
        NioEventLoopGroup workGroup = new NioEventLoopGroup(2);
        ServerBootstrap bootstrap = new ServerBootstrap();
        bootstrap.channel(NioServerSocketChannel.class)
                .option(ChannelOption.SO_BACKLOG, 1)
                .group(bossGroup, workGroup)
                .bind(8086).sync();
    }
}
